import { ref } from 'vue'

export const lineChartData = ref({
    legend: {
        data: [],
    }, // 点击图例控制哪些系列不显示
    tooltip: {}, //  提示框
    toolbox: {
        //  工具
        left: 'center',
        feature: {
            dataZoom: {},
        },
    },
    grid: [
        //  绘图网格
        { right: '55%', bottom: '55%', x: 40, y: 30 },
        { left: '55%', bottom: '55%', x2: 40, y: 30 },
        { right: '55%', top: '55%', x: 40, y: 30 },
        { left: '55%', top: '55%', x2: 40, y: 30 },
    ],
    xAxis: [],
    yAxis: [],
    dataset: [],
    series: [],
})

export const eChartNames = {
    groupLine: {
        name: '分组',
        startColor: 'rgb(128, 255, 165)',
        endColor: 'rgb(1, 191, 236)',
    },
    personLine: {
        name: '人数',
        startColor: 'rgb(0, 221, 255)',
        endColor: 'rgb(77, 119, 255)',
    },
}
